﻿@model ClinicaOdontologica.Models.Paciente

@{
    ViewBag.Title = "PacienteCrear";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>PacienteCrear</h2>


@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>Paciente</h4>
        <hr />
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        <div class="form-group">
            <table style="width:25%;">
                <tr>
                    <td>Rut:</td>
                    <td><input id="Text1" type="text" /></td>
                </tr>
                <tr>
                    <td>Nombres:</td>
                    <td><input id="Nombres" type="text" /></td>
                </tr>
                <tr>
                    <td>Apellido Paterno:</td>
                    <td><input id="ApellidoPaterno" type="text" /></td>
                </tr>
                <tr>
                    <td>Apellido Materno:</td>
                    <td><input id="ApellidoMaterno" type="text" /></td>
                </tr>
                <tr>
                    <td>Telefono:</td>
                    <td><input id="Telefono" type="text" /></td>
                </tr>
                <tr>
                    <td>Correo Electrónico:</td>
                    <td><input id="Correo" type="text" /></td>
                </tr>
                <tr>
                    <td>Calle:</td>
                    <td><input id="Calle" type="text" /></td>
                </tr>
                <tr>
                    <td>Numero</td>
                    <td><input id="Numero" type="text" /></td>
                </tr>
                <tr>
                    <td>Ciudad:</td>
                    <td><input id="Ciudad" type="text" /></td>
                </tr>
                <tr>
                    <td>Región</td>
                    <td><input id="Region" type="text" /></td>
                </tr>
                <tr>
                    <td>Comuna:</td>
                    <td><input id="Comuna" type="text" />
                        @*<select name="equipment">
                            @foreach (var item in db.Query("SELECT Id, EquipmentName FROM Equipment"))
                            {
                                <option value="@item.Id">@item.EquipmentName</option>
                            }---%>)
                        </select></td>*@
                </tr>
            </table>
                       
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
